class AdminController < ApplicationController
  def index
  end

  def home
   # @user = current_user
    #if (@user != "admin")
     # redirect_to admin_index_path
    #end   
  end

  def create
  end

  def book
  end

  def borrow
  end
  
  def return
    @borrow_item = BorrowItem.find(params[:item])
    @borrow_item.is_return = true;
    @borrow_item.save
    redirect_to params[:path]
  end
  
  def categories
    
  end
end
